{include file='header.tpl'}
<form method="post" action="/account/register">
<fieldset>
	<legend>注册</legend>
	<div class="row">
	<label for="form_username">用户名</label>
	<span><input class="inbox" type="text" id="form_username" name="username" 
	value="{$fp->username|escape}" /></span>
	{include file='lib/error.tpl' error=$fp->getError('username')}
	</div>
	<div class="row">
	<label for="form_password">密码</label>
	<span><input class="inbox" type="password" id="form_username" name="password" 
	value="" /></span>
	{include file='lib/error.tpl' error=$fp->getError('password')}
	</div>
	<div class="row">
	<label for="form_comfirm">重复</label>
	<span><input class="inbox" type="password" id="form_comfirm" 
	name="comfirm" value="" /></span>
	{include file='lib/error.tpl' error=$fp->getError('comfirm')}
	</div>
	<div class="row">
	<label for="form_email">邮箱</label>
	<span><input class="inbox" type="text" id="form_email" name="email" 
	value="{$fp->email|escape}" /></span>
	{include file='lib/error.tpl' error=$fp->getError('email')}
	</div>
	<div class="row" id="from_captcha_container">
	<label for="form_captcha">验证码</label>
	<span><input class="inbox" type="text" id="form_captcha" 
	name="captcha" value="{$fp->captcha|escape}" /></span>
	
	{include file="lib/error.tpl" error=$fp->getError('captcha')}
	</div>
	<div id="captcha" class="row">
        <img src="/utility/captcha" alt="验证图片" />
    </div>
	<div>
	<input class="submit" type="submit" name="submit" value="提交" />
	</div>
</fieldset>
</form>
{include file="footer.tpl"}